home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 17 / Developer Source Volume 17 (I-MODE Publications, Inc.)(2000).iso / visua / 831 / swanf108.gif < prev   
Graphics Interchange Format  |  1998-10-01  |  23KB  |  621x328  |  4-bit (4 colors)
Labels: text | screenshot | font | number | black and white | parallel
OCR: Method Description void addNotify As usual, this method connects the FileDialog object with its native operating system peer. Applications should have no reason to call this method." int getMade Returns the current mode setting, which is equal to FileDialog.LOAD or FileDialog.SAVE, as defined in the FileDialog class. String getDirectory Returns the current directory path string as set by the user. You will normally call this method after showing a file dialog. void setDirectory (String dir) Changes the current directory path that the file dialog initially displays. You will normally call this method before showing the dialog. String gefFile Returns the currently selected or entered filename. You will normally call this method after showing the dialog to obtain the user's file entry. void setFile (String file) Changes the initial filename displayed in the file dialog. You will normally call this method before showing the dialog. It is particularly useful in a File Save dialog that sug- gests a current filename as the one to use for saving an open document. FilenameFilter Returns an object of the FilenameFiller class, which specifies wild cards such as */* and getFilenameFilter *. TXT for restricting directory lists to specific categories of files. This method is particularly useful for updating or modifying the filter list. By default, the only filter used by a file dialog is the "all files" wild card; *.*. (At least this is true for Windows 95.) void setFilenameFilter Sets the file dialog's list of filename filters. You will normally call this method before (FilenameFilter filter) showing the dialog window. Figure 8: The public methods of the FileDialog class.